package com.aceitunaproject.mapdisplay;

import java.awt.Graphics;
import java.awt.Graphics2D;


import javax.swing.JPanel;

public class MapScreen extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private MapDrawer gui;

	public void setGUI(MapDrawer gui) {
		this.gui = gui;
	}

	@Override
	public void paintComponent(Graphics g) {

		Graphics2D g2d = (Graphics2D) g;
		if (gui != null) {
			//gui.drawRoad(g2d, 1, 1, 1, 2, 2);
			gui.display(g2d);
			
			
			g.drawString("hola mundo", 40, 40);
					}
	}
}
